#include <iostream>
using namespace std;
#include "Task.hpp"
#include "Threadpool.hpp"
#include <memory>


int main()
{   
    // unique_ptr<Threadpool<Task>> tp(new Threadpool<Task>());
    // tp->run();
    Threadpool<Task>::GetInstance()->run();
    int x,y;
    char op;
    while(true)
    {
        cout<<"请输入x"<<endl;
        cin>>x;
        cout<<"请输入y"<<endl;
        cin>>y;
        cout<<"请输入操作方法"<<endl;
        cin>>op;
        Task t(x,y,mymath,op);
        //tp->push(t);
        Threadpool<Task>::GetInstance()->push(t);
    }
    return 0;
}